import Vue from 'vue';

import {
	Icon,
	TimeSelect,
	Button,
	CheckboxGroup,
	Checkbox,
	RadioGroup,
	Radio,
	Select,
	Option,
	Form,
	FormItem,
	Input,
	Autocomplete,
	Table,
	TableColumn,
	Tag,
	TimePicker,
	DatePicker,
	Tooltip,
	Switch,
	Tree,
	Row,
	Col,
	InputNumber,
	Upload,
	Transfer,
	Carousel,
	CarouselItem,
	Pagination,
	Cascader,
	Scrollbar,
	Menu,
	MenuItem,
	Submenu,
	Dropdown,
	DropdownMenu,
	DropdownItem,
	Slider,
	Dialog,
	Popover,
	MessageBox,
	ColorPicker,
	Progress,
	OptionGroup,
	Image
} from 'element-ui';

Vue.use(Icon);
Vue.use(Button);
Vue.use(Select);
Vue.use(Option);
Vue.use(CheckboxGroup);
Vue.use(Checkbox);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Input);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Tag);
Vue.use(DatePicker);
Vue.use(TimePicker);
Vue.use(Tooltip);
Vue.use(Switch);
Vue.use(Tree);
Vue.use(Row);
Vue.use(Col);
Vue.use(InputNumber);
Vue.use(Upload);
Vue.use(Autocomplete);
Vue.use(TimeSelect);
Vue.use(Transfer);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.use(Pagination);
Vue.use(Cascader);
Vue.use(Scrollbar);
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(Submenu);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Slider);
Vue.use(Dialog);
Vue.use(Popover);
Vue.use(ColorPicker);
Vue.use(Progress);
Vue.use(OptionGroup);
Vue.use(Image);

// collapse 展开折叠
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
Vue.component(CollapseTransition.name, CollapseTransition);

Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
